/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Jonas
 */
public class Item {

    private int itemID;
    private String itemName;
    private String itemUnit;
    private int itemStock;

    public Item(int itemID, String itemName, String itemUnit, int itemStock) {
        this.itemID = itemID;
        this.itemName = itemName;
        this.itemUnit = itemUnit;
        this.itemStock = itemStock;
    }

    public void setItemStock(int itemStock) {
        this.itemStock = itemStock;
    }

    @Override
    public String toString() {
        return itemStock + " " + itemUnit + " " + itemName;
    }

    public int getItemID() {
        return itemID;
    }

    public String getItemName() {
        return itemName;
    }

    public String getItemUnit() {
        return itemUnit;
    }

    public int getItemStock() {
        return itemStock;
    }
}
